Apparatus and method for correcting image

ABSTRACT

An apparatus for correcting an image may include a first correction unit measuring movement of a camera module and a position of a lens in the camera module and adjusting the position of the lens in the camera module in accordance with the movement, and a second correction unit calculating error vectors using the measured movement value of the camera module and the position value of the lens and correcting an image from the camera module using the error vectors.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of Korean Patent Application No.10-2014-0017767 filed on Feb. 17, 2014, with the Korean IntellectualProperty Office, the disclosure of which is incorporated herein byreference.

BACKGROUND

The present disclosure relates to an apparatus and a method forcorrecting an image.

As camera modules in digital imaging apparatuses such as digital camerasor smart phones have been reduced in size, camera shake has become anissue. The issue of camera shake refers to motion blur appearing on animage captured by a camera due to camera motions such as movement androtation during image exposure.

To overcome this problem, existing digital imaging apparatuses employOptical Image Stabilization (OIS) technology that corrects for user handshake by adjusting the position of a lens by the amount of hand shakemovement or Digital Image Stabilization (DIS) that performspost-correction on a captured image using a motion point spreadfunction.

In the OSI scheme, however, an error between the amount of hand shakemeasured by a gyro sensor and the actual movement amount of a lens mayoccur, so that motion blur corresponding to the error may remain incaptured images.

Further, in the case of the DIS scheme, although it has the advantage oflow manufacturing costs, it has poor performance in removing motionblur, as compared to the OIS scheme.

SUMMARY

An exemplary embodiment in the present disclosure may provide anapparatus and a method for correcting an image in which error vectorsare calculated based on movement of a camera sensed by a first sensorand a position of a lens sensed by a second sensor, and an image iscorrected based thereon, so that a clearer image may be obtained.

According to an exemplary embodiment in the present disclosure, anapparatus for correcting an image may include: a first correction unitmeasuring movement of a camera module and a position of a lens in thecamera module and adjusting the position of the lens in the cameramodule in accordance with the movement; and a second correction unitcalculating error vectors using the measured movement value of thecamera module and the position value of the lens and correcting an imagefrom the camera module using the error vectors.

The second correction unit may include: an error vector calculation unitcalculating the error vectors using the measured movement value of thecamera module and the position value of the lens; and an imagecorrection unit correcting the image from the camera module using theerror vectors.

The second correction unit may include: an error vector calculation unitcalculating the error vectors using the measured movement of the cameramodule and the position of the lens; and an image correction unitcorrecting the image from the camera module using the error vectors.

The apparatus may further include a timing control unit transmitting thecalculated error vectors in response to a state of a shutter of thecamera module to the image correction unit.

The timing control unit may extract error vectors calculated while theshutter is open from among the calculated error vectors so as totransmit the error vectors to the image correction unit.

The timing control unit may include: a timer outputting a delay timecorresponding to a time difference in the case of a time differencebetween a time at which an on/off signal for the shutter transmittedfrom the camera module is transmitted and when the shutter is actuallyopened/closed; and a delay buffer applying the delay time to the errorvectors transmitted from the error vector calculation unit so as totransmit the error vectors to the image correction unit.

The first correction unit may include: a first sensor measuring movementof the camera module; a lens control unit adjusting the position of thelens in the camera module in accordance with the movement of the cameramodule measured by the first sensor; and a second sensor measuring theposition of the lens.

The lens control unit may adjust the position of the lens in such amanner as to counteract the movement of the camera module sensed by thefirst sensor.

The first sensor may sense angular velocity of the camera module, andthe lens control unit may calculate a motion vector of the lenscorresponding to the angular velocity of the camera module sensed by thefirst sensor and may adjust the position of the lens according to thecalculated motion vector of the lens.

The second correction unit may compare a movement distance valuecorresponding to an angular velocity value sensed by the first sensorwith a position value of the lens sensed by the second sensor so as tocalculate an error vector.

The motion vector may be calculated by integrating the angular velocityvalue sensed by the first sensor.

The lens control unit may include: a motion vector calculation unitcalculating a motion vector of the lens corresponding to the movement ofthe camera module sensed by the first sensor; and a lens drive unitadjusting the position of the lens based on the calculated motion vectorof the lens.

The motion vector calculation unit may be a PID controller receiving afeedback signal indicating the position of the lens from the secondsensor to calculate the motion vector.

The first sensor may be a gyro sensor detecting angular velocity of thecamera module.

The second sensor may be a hall sensor detecting the position of thelens.

According to an exemplary embodiment in the present disclosure, anapparatus for correcting an image may include: a gyro sensor sensingangular velocity of a camera module; a lens control unit calculating amotion vector corresponding to the sensed angular velocity and adjustinga position of a lens in the camera module based on the motion vector; ahall sensor sensing the position of the lens; an error vectorcalculation unit comparing a movement distance value corresponding to anangular velocity value of the camera module sensed by the gyro sensorwith a position value of the lens sensed by the hall sensor so as tocalculate error vectors; a timing control unit extracting error vectorscalculated while a shutter of the camera module is open from among thecalculated error vectors; and an image correction unit correcting animage captured by the lens based on the extracted error vectors.

The lens control unit may calculate a motion vector of the lenscorresponding to the angular velocity of the camera module sensed by thegyro sensor and adjust the position of the lens based on the calculatedmotion vector of the lens.

The motion vector may be calculated by integrating the angular velocityvalue sensed by the gyro sensor.

The lens control unit may include: a motion vector calculation unitcalculating a motion vector of the lens corresponding to angularvelocity of the camera module sensed by the gyro sensor; and a lensdrive unit adjusting the position of the lens based on the calculatedmotion vector of the lens.

The motion vector calculation unit may be a PID controller receiving afeedback signal indicating the position of the lens from the hall sensorto calculate the motion vector.

According to an exemplary embodiment in the present disclosure, a methodfor correcting an image may include: a) sensing movement of a cameramodule; b) adjusting a position of a lens in the camera module inaccordance with the sensed movement of the camera module; c) sensing theposition of the lens; d) calculating error vectors based on the sensedmovement of the camera module and the sensed position of the lens; ande) correcting an image from the camera module based on the error vector.

a) the adjusting of the position of the lens may include calculating amotion vector of the lens corresponding to the sensed movement of thecamera module; and adjusting the position of the lens based on thecalculated motion vector of the lens.

The method may further include: extracting valid error vectorscalculated while the shutter of the camera module is open from among thecalculated error vectors, between d) the calculating of the errorvectors and e) the correcting of the image, wherein e) the correcting ofthe image includes correcting the image using the calculated valid errorvectors.

Operations a) to d) may be repeatedly performed a predetermined numberof times depending on the period of time for which the shutter of thecamera module is open.

BRIEF DESCRIPTION OF DRAWINGS

The above and other aspects, features and other advantages of thepresent disclosure will be more clearly understood from the followingdetailed description taken in conjunction with the accompanyingdrawings, in which:

FIG. 1 is a block diagram of an apparatus for correcting an imageaccording to an exemplary embodiment of the present disclosure;

FIG. 2 is a block diagram of an example of the first correction unitillustrated in FIG. 1;

FIG. 3 is a block diagram of an example of the lens control unitillustrated in FIG. 2;

FIG. 4 is a block diagram of another example of the lens control unitillustrated in FIG. 2;

FIG. 5 is a block diagram of an example of the second correction unitillustrated in FIG. 1;

FIG. 6 is a block diagram of another example of the second correctionunit illustrated in FIG. 1;

FIG. 7 is a block diagram of an example of a timing control unitillustrated in FIG. 6;

FIG. 8 is a block diagram of an apparatus for correcting an imageaccording to another exemplary embodiment of the present disclosure;

FIG. 9 is a flowchart for illustrating a method for correcting an imageaccording to an exemplary embodiment of the present disclosure;

FIG. 10 is a flowchart for illustrating an example of adjusting of theposition of a lens of the method illustrated in FIG. 9; and

FIG. 11 is a flowchart for illustrating a method for correcting an imageaccording to another exemplary embodiment of the present disclosure.

DETAILED DESCRIPTION

Hereinafter, embodiments of the present disclosure will be described indetail with reference to the accompanying drawings. The disclosure may,however, be embodied in many different forms and should not be construedas being limited to the embodiments set forth herein. Rather, theseembodiments are provided so that this disclosure will be thorough andcomplete, and will fully convey the scope of the disclosure to thoseskilled in the art. Throughout the drawings, the same or like referencenumerals will be used to designate the same or like elements.

FIG. 1 is a block diagram of an apparatus for correcting an imageaccording to an exemplary embodiment of the present disclosure.

Referring to FIG. 1, the apparatus 10 for correcting an image accordingto the exemplary embodiment of the present disclosure may include afirst correction unit 100 and a second correction unit 200.

The apparatus 10 for correcting an image may be installed in a digitalimaging device such as a digital camera or a smart phone along with acamera module 20 and may serve to correct an image captured by thecamera module 20. The camera module 20 may include a lens 22 throughwhich light passes, an image generation unit 24 that receives the lightso as to generate an image signal, and a shutter 26.

The first correction unit 100, when capturing an image using the cameramodule 20, may serve to sense the hand shake of the camera module 20 andmove the lens 22 in the camera module 20 in accordance with the handshake so as to prevent motion blur caused by the hand shake of thecamera module 20.

The second correction unit 200 may correct an image captured by thecamera module 20 in accordance with the sensed amount of hand shake ofthe camera module 20 and the corresponding position of the lens 22.

In an exemplary embodiment, the second correction unit 200 may compare amovement value of the camera module 20 with a position value of the lens22 so as to calculate error vectors and may use the error vectors tocorrect the image captured by the camera module 20.

The first and second correction units 100 and 200 will be describedbelow in more detail with reference to FIGS. 2 through 7.

FIG. 2 is a block diagram of an example of the first correction unit 100illustrated in FIG. 1.

In the example illustrated in FIG. 2, the first correction unit 100 mayinclude a first sensor 110, a lens control unit 120, and a second sensor130.

The first sensor 110 may sense the movement of the camera module 20. Inan exemplary embodiment, the first sensor 110 may be a gyro sensor thatmeasures angular velocity of the camera module 20. The components of theangular velocity may include a pitch value or a yaw value. That is, thefirst sensor 110 may measure a pitch value and a yaw value of the cameramodule 20 and may output the measured values to the lens control unit120.

The lens control unit 120 may adjust the position of the lens 22 inaccordance with the movement of the camera module 20 sensed by the firstsensor 110. In an exemplary embodiment, the lens control unit 120 mayadjust the position of the lens 22 in the opposite direction to themovement of the camera module 20.

Specifically, the lens control unit 120 may calculate a motion vectorcorresponding to the angular velocity of the camera module 20 sensed bythe first sensor 110 and may adjust the position of the lens 22 inaccordance with the calculated motion vector. The motion vector may becalculated by integrating the angular velocity value. The lens controlunit 120 may be operated only while a shutter 26 of the camera module 20is open.

The configuration of the lens control unit 120 will be described in moredetail with reference to FIG. 3.

The second sensor 130 may sense the position of the lens 22 of thecamera module 20. In an exemplary embodiment, the second sensor 130 maybe a hall sensor. The second sensor 130 may sense the position of thelens 22 and may output it to the error vector calculation unit 210.

FIG. 3 is a block diagram of an example of the lens control unitillustrated in FIG. 2, and FIG. 4 is a block diagram of another exampleof the lens control unit illustrated in FIG. 2.

In the example illustrated in FIG. 3, the lens control unit 120according to an exemplary embodiment of the present disclosure mayinclude a motion vector calculation unit 122 and a lens drive unit 124.

The motion vector calculation unit 122 may calculate a motion vector ofthe lens 22 in accordance with the movement of the camera module 20sensed by the first sensor 110. That is, in order to prevent motion bluroccurring due to the hand shake of the camera module 20, the motionvector calculation unit 122 may generate a motion vector that includes avalue corresponding to the amount of movement in the opposite directionto the movement of the camera module 20.

In an exemplary embodiment, the motion vector calculation unit 122 maybe a PID controller 123 that receives a feedback signal indicating theposition of the lens 22 from the second sensor 130 so as to calculate amotion vector, as illustrated in FIG. 4.

The lens drive unit 124 may adjust the position of the lens 22 based onthe motion vector calculated by the motion vector calculation unit 122.The lens drive unit 124 may adjust the position of the lens 22 in a PWMmanner or in a linear manner.

FIG. 5 is a block diagram of an example of the second correction unitillustrated in FIG. 1, FIG. 6 is a block diagram of another example ofthe second correction unit illustrated in FIG. 1, and FIG. 7 is a blockdiagram of an example of a timing control unit illustrated in FIG. 6.

Referring to FIGS. 5 and 6, the second correction unit 200 according toan exemplary embodiment of the present disclosure may include an errorvector calculation unit 210 calculating error vectors in the firstcorrection unit 100, and an image correction unit 220 correcting animage using the error vector.

The second correction unit 200 may further include a timing control unit230 adjusting timings at which the error vector calculated by the errorvector calculation unit 210 is transmitted to the image correction unit220.

The motion vector calculation unit 210 may calculate error vectors usingthe position of the lens 22 and the movement of the camera module 20sensed by the first correction unit 100.

Specifically, the error vector calculation unit 210 may calculate errorvectors based on the movement value of the camera module 20 sensed bythe first sensor 110 and the position value of the lens 22 sensed by thesecond sensor 130. In an exemplary embodiment, the error vectorcalculation unit 210 may compare the pitch values and yaw values sensedby the first sensor 110 with an x-coordinate value and a y-coordinatevalue sensed by the second sensor 130 so as to calculate error vectors.In an exemplary embodiment, the error vector calculation unit 210 may beoperated only while a shutter 26 of the camera module 20 is open.

The image correction unit 220 may correct an image generated by theimage generation unit 24 in the camera module 20 based on the errorvector calculated by the error vector calculation unit 210.

In an exemplary embodiment, the image correction unit 220 may performdeconvolution on the error vector and an image generated by the imagegeneration unit 24 using an image restoration filter, so as to correctimage blur.

The timing control unit 230 may transmit the calculated errors vector tothe image correction unit 220 in response to the state of the shutter 26of the camera module 20.

In an exemplary embodiment, the timing control unit 230 may extracterror vectors while the shutter 26 of the camera module 20 is open,i.e., while an image is generated, so as to transmit it to the imagecorrection unit 220.

Specifically, the timing control unit 230 may receive an on/off signalfor the shutter 26 from the camera module 20 so as to determine thestate of the shutter 26 and may extract error vectors calculated whilethe shutter 26 is open from among the error vector calculation unit 210so as to transmit the error vectors to the image correction unit 220.

In an exemplary embodiment, the timing control unit 230 may include adelay buffer 231 and a timer 232, as illustrated in FIG. 7.

The delay buffer 231 may apply to the error vectors transmitted from theerror vector calculation unit 210 a time delay provided from the timer232 if there is a time difference between a time at which the on/offsignal for the shutter 26 transmitted from the camera module 20 istransmitted and when the shutter is actually opened/closed, to therebytransmit them to the image correction unit 220.

The timer 232 may provide a delay time corresponding to a timedifference in the case of a time difference between a time at which theon/off signal for the shutter 26 transmitted from the camera module 20is transmitted and when the shutter is actually opened/closed.

FIG. 8 is a block diagram of an apparatus for correcting an imageaccording to another exemplary embodiment of the present disclosure.

Referring to FIG. 8, an apparatus for correcting an image according tothe another exemplary embodiment of the present disclosure may include agyro sensor 110 sensing angular velocity of a camera module 20; a lenscontrol unit 120 calculating a motion vector corresponding to the sensedangular velocity and adjusting a position of a lens 22 in the cameramodule 20 based on the motion vector; a hall sensor 130 sensing theposition of the lens 22; an error vector calculation unit 210 comparinga movement distance value corresponding to an angular velocity value ofthe camera module 20 sensed by the gyro sensor 110 with a position valueof the lens 22 sensed by the hall sensor 130 so as to calculate errorvectors; a timing control unit 230 extracting error vectors calculatedwhile a shutter 26 of the camera module is open from among thecalculated error vectors; and an image correction unit correcting animage captured by the lens 22 based on the extracted error vectors.

FIG. 9 is a flowchart for illustrating a method for correcting an imageaccording to an exemplary embodiment of the present disclosure, FIG. 10is a flowchart for illustrating an example of adjusting of the positionof a lens of the method illustrated in FIG. 9, and FIG. 11 is aflowchart for illustrating a method for correcting an image according toanother exemplary embodiment of the present disclosure.

The method for correcting an image illustrated in FIG. 9 according tothe exemplary embodiment is performed by the apparatus 10 for correctingan image described above with reference to FIGS. 1 through 8, and thusredundant descriptions will not be made.

Referring to FIG. 9, the apparatus 10 for correcting an image may sensemovement of the camera module 20 (S800). Then, the apparatus 10 forcorrecting an image may adjust the position of the lens 22 in accordancewith the sensed movement of the camera module 20. Then, the apparatus 10for correcting an image may sense the position of the lens 22 (S820) andmay calculate error vectors based on the sensed movement value of thecamera module 20 and the position value of the lens 22 (S830).

Then, the apparatus 10 for correcting an image may correct an imagecaptured by the camera module 20 based on the calculated error vector(S840).

In an exemplary embodiment, as illustrated in FIG. 10, the adjusting ofthe position of the lens 5810 may include calculating a motion vector ofthe lens 22 corresponding to the sensed movement of the camera module 20(S812), and adjusting the position of the lens 22 according to thecalculated motion vector of the lens 22 (S814).

In an exemplary embodiment, the operations S800 to S830 may be performedonly while a shutter of the camera module 20 is open and may berepeatedly performed a predetermined number of times depending on theperiod of time for which the shutter of the camera module 20 is open.

In another exemplary embodiment, as illustrated in FIG. 11, the methodfor correcting an image may include, after the calculating of the errorvector S830, extracting valid error vectors calculated while the shutter26 of the camera module 20 is open from among the calculated errorvectors (S835), and correcting an image using the extracted valid errorvectors (S845).

As set forth above, according to exemplary embodiments of the presentdisclosure, error vectors are calculated based on movement of a cameramodule sensed by a first sensor and a position of a lens sensed by asecond sensor, and an image is corrected based thereon, so that aclearer image can be obtained.

While exemplary embodiments have been shown and described above, it willbe apparent to those skilled in the art that modifications andvariations could be made without departing from the spirit and scope ofthe present disclosure as defined by the appended claims.

What is claimed is:
 1. An apparatus for correcting an image, comprising:a first correction unit configured to measure movement of a cameramodule and a position of a lens in the camera module and adjust theposition of the lens in the camera module in accordance with themovement; and a second correction unit configured to calculate errorvectors using the measured movement value of the camera module and theposition value of the lens and correct an image from the camera moduleusing the error vectors.
 2. The apparatus of claim 1, wherein the secondcorrection unit includes: an error vector calculation unit configured tocalculate the error vectors using the measured movement value of thecamera module and the position value of the lens; and an imagecorrection unit configured to correct the image from the camera moduleusing the error vectors.
 3. The apparatus of claim 2, wherein the secondcorrection unit further includes a timing control unit configured totransmit the calculated error vectors in response to a state of ashutter of the camera module to the image correction unit.
 4. Theapparatus of claim 3, wherein the timing control unit extracts errorvectors calculated while the shutter is open from among the calculatederror vectors so as to transmit the error vectors to the imagecorrection unit.
 5. The apparatus of claim 4, wherein the timing controlunit includes: a timer configured to output a delay time correspondingto a time difference in the case of a time difference between a time atwhich an on/off signal for the shutter transmitted from the cameramodule is transmitted and when the shutter is actually opened/closed;and a delay buffer configured to apply the delay time to the errorvectors transmitted from the error vector calculation unit so as totransmit the error vectors to the image correction unit.
 6. Theapparatus of claim 1, wherein the first correction unit includes: afirst sensor configured to measure movement of the camera module; a lenscontrol unit configured to adjust the position of the lens in the cameramodule in accordance with the movement of the camera module measured bythe first sensor; and a second sensor configured to measure the positionof the lens.
 7. The apparatus of claim 6, wherein the lens control unitadjusts the position of the lens in such a manner as to counteract themovement of the camera module sensed by the first sensor.
 8. Theapparatus of claim 6, wherein the first sensor senses angular velocityof the camera module, and the lens control unit calculates a motionvector of the lens corresponding to the angular velocity of the cameramodule sensed by the first sensor and adjusts the position of the lensaccording to the calculated motion vector of the lens.
 9. The apparatusof claim 8, wherein the second correction unit compares a movementdistance value corresponding to an angular velocity value sensed by thefirst sensor with a position value of the lens sensed by the secondsensor so as to calculate the error vectors.
 10. The apparatus of claim8, wherein the motion vector is calculated by integrating the angularvelocity value sensed by the first sensor.
 11. The apparatus of claim 6,wherein the lens control unit includes: a motion vector calculation unitconfigured to calculate a motion vector of the lens corresponding to themovement of the camera module sensed by the first sensor; and a lensdrive unit configured to adjust the position of the lens based on thecalculated motion vector of the lens.
 12. The apparatus of claim 11,wherein the motion vector calculation unit is a PID controller receivinga feedback signal indicating the position of the lens from the secondsensor to calculate the motion vector.
 13. The apparatus of claim 6,wherein the first sensor is a gyro sensor detecting angular velocity ofthe camera module.
 14. The apparatus of claim 6, wherein the secondsensor is a hall sensor detecting the position of the lens.
 15. Anapparatus for correcting an image, comprising: a gyro sensor configuredto sense angular velocity of a camera module; a lens control unitconfigured to calculate a motion vector corresponding to the sensedangular velocity and adjust a position of a lens in the camera modulebased on the motion vector; a hall sensor configured to sense theposition of the lens; an error vector calculation unit configured tocompare a movement distance value corresponding to an angular velocityvalue of the camera module sensed by the gyro sensor with a positionvalue of the lens sensed by the hall sensor so as to calculate errorvectors; a timing control unit configured to extract error vectorscalculated while a shutter of the camera module is open from among thecalculated error vectors; and an image correction unit configured tocorrect an image captured by the lens based on the extracted errorvectors.
 16. The apparatus of claim 15, wherein the lens control unitcalculates a motion vector of the lens corresponding to the angularvelocity of the camera module sensed by the gyro sensor and adjusts theposition of the lens based on the calculated motion vector of the lens.17. The apparatus of claim 15, wherein the motion vector is calculatedby integrating the angular velocity value sensed by the gyro sensor. 18.The apparatus of claim 15, wherein the lens control unit includes: amotion vector calculation unit configured to calculate a motion vectorof the lens corresponding to the angular velocity of the camera modulesensed by the gyro sensor; and a lens drive unit configured to adjustthe position of the lens based on the calculated motion vector of thelens.
 19. The apparatus of claim 18, wherein the motion vectorcalculation unit is a PID controller receiving a feedback signalindicating the position of the lens from the hall sensor to calculatethe motion vector.
 20. A method for correcting an image, comprising: a)sensing movement of a camera module; b) adjusting a position of a lensin the camera module in accordance with the sensed movement of thecamera module; c) sensing the position of the lens; d) calculating errorvectors based on the sensed movement of the camera module and the sensedposition of the lens; and e) correcting an image from the camera modulebased on the error vectors.
 21. The method of claim 20, wherein a) theadjusting of the position of the lens includes: calculating a motionvector of the lens corresponding to the sensed movement of the cameramodule; and adjusting the position of the lens based on the calculatedmotion vector of the lens.
 22. The method of claim 20, furthercomprising extracting valid error vectors calculated while the shutterof the camera module is open from among the calculated error vectors,between d) the calculating of the error vectors and e) the correcting ofthe image, wherein e) the correcting of the image includes correctingthe image using the calculated valid error vectors.
 23. The method ofclaim 20, wherein the operations a) to d) are repeatedly performed apredetermined number of times depending on the period of time for whichthe shutter of the camera module is open.